//
//  AboutUsViewController.m
//  Commerce
//
//  Created by xiaofeifei on 15/2/25.
//  Copyright (c) 2015年 fei. All rights reserved.
//

#import "AboutUsViewController.h"

@interface AboutUsViewController ()

@property (strong, nonatomic) IBOutlet UITextView *textView;

@end

@implementation AboutUsViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.navStr = @"关于我们";
    _textView.text = @"公司宗旨 \n 让发货成为一种轻松的消费体验！ \n 让专线预定零担货成为一种潮流！ \n 引领最接地气的移动物联网+物流神器";
    // Do any additional setup after loading the view from its nib.
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

- (IBAction)callphone:(id)sender{
    [[GlobalData sharedGlobalData] phoneBtnActWithNum:@"4009605288"];
    //传入的参数
    NSString *user_name = [[GlobalData sharedGlobalData] userinfoDic][@"UserName"];
    if (!user_name) {
        user_name = @"";
    }
    NSString *url = [NSString stringWithFormat:@"%@user/boda?api_key=%@&user_name=%@&to_username=%@",URL_ROOT,[[@"1234567890!@#" md5HexDigest] uppercaseString],user_name,@"4009605288"];
    NSMutableDictionary *parameters = [GlobalData paramterDic];
    [[BaseNetwork alloc] initWithMethodUrl:url
                                    params:parameters
                               requestMode:DGHTTPMethodGET
                               loadingShow:YES
                              didFinshLoad:^(id result) {
                              }];
}

- (IBAction)calltelphone:(id)sender{
    [[GlobalData sharedGlobalData] phoneBtnActWithNum:@"051082414767"];
    //传入的参数
    NSString *user_name = [[GlobalData sharedGlobalData] userinfoDic][@"UserName"];
    if (!user_name) {
        user_name = @"";
    }
    NSString *url = [NSString stringWithFormat:@"%@user/boda?api_key=%@&user_name=%@&to_username=%@",URL_ROOT,[[@"1234567890!@#" md5HexDigest] uppercaseString],user_name,@"051082414767"];
    NSMutableDictionary *parameters = [GlobalData paramterDic];
    [[BaseNetwork alloc] initWithMethodUrl:url
                                    params:parameters
                               requestMode:DGHTTPMethodGET
                               loadingShow:YES
                              didFinshLoad:^(id result) {
                              }];
}

- (IBAction)callbaodingphone:(id)sender{
    [[GlobalData sharedGlobalData] phoneBtnActWithNum:@"03125934006"];
    //传入的参数
    NSString *user_name = [[GlobalData sharedGlobalData] userinfoDic][@"UserName"];
    if (!user_name) {
        user_name = @"";
    }
    NSString *url = [NSString stringWithFormat:@"%@user/boda?api_key=%@&user_name=%@&to_username=%@",URL_ROOT,[[@"1234567890!@#" md5HexDigest] uppercaseString],user_name,@"03125934006"];
    NSMutableDictionary *parameters = [GlobalData paramterDic];
    [[BaseNetwork alloc] initWithMethodUrl:url
                                    params:parameters
                               requestMode:DGHTTPMethodGET
                               loadingShow:YES
                              didFinshLoad:^(id result) {
                              }];
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
